package com.car.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName: Order
 * @Description:
 * @Author 余全盛
 * @Date: 2021/12/2 11:19
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("t_order")
public class Order implements Serializable {
    @TableId("orderId")
    private String orderId; //订单ID
    @TableField("customerId")
    private Integer customerId;//租车人ID
    @TableField("orderCarId")
    private Integer orderCarId;//出租的车的ID
    @TableField("orderReserveStartDate")
    private Date orderReserveStartDate;//预约起始日期
    @TableField("orderReserveEndDate")
    private Date orderReserveEndDate;//预约结束日期
    @TableField("orderStartDate")
    private Date orderStartDate;//实际开始日期
    @TableField("orderEndDate")
    private Date orderEndDate;//实际结束日期
    @TableField("orderStartCarOilValue")
    private Double orderStartCarOilValue;  //开始时车油量
    @TableField("orderEndCarOilValue")
    private Double orderEndCarOilValue;  //归还时车油量
    @TableField("orderStartCarElectriclValue")
    private Double orderStartCarElectriclValue;//开始时车电量
    @TableField("orderEndCarElectriclValue")
    private Double orderEndCarElectriclValue;//归还时车电量
    @TableField("orderRentPrice")
    private Double orderRentPrice;//租金
    @TableField("orderOilPrice")
    private Double orderOilPrice;//油价
    @TableField("orderElectricPrice")
    private Double orderElectricPrice;//电价
    @TableField("orderServicePrice")
    private Double orderServicePrice;//服务费
    @TableField("orderTotalPrice")
    private Double orderTotalPrice;//订单总价
    @TableField("orderState")
    private Integer orderState;//订单状态
    @TableField("startDepartmentId")
    private Integer startDepartmentId;//租出门店ID
    @TableField("endDepartmentId")
    private Integer endDepartmentId;//归还门店ID
    @TableField("orderStartUserId")
    private Integer orderStartUserId;//订单起始经手人ID
    @TableField("orderEndtUserId")
    private Integer orderEndtUserId;//订单结束经手人ID
    @TableField("orderDeposit")
    private Double orderDeposit;//押金
    @TableField("orderDepositState")
    private Integer orderDepositState;//押金状态
}
